//
//  CameraStatus.m
//  Yanwei
//
//  Created by 言味 on 16/5/17.
//  Copyright © 2016年 DCloud. All rights reserved.
//

#import "CameraStatus.h"

@implementation CameraStatus

- (AVAuthorizationStatus)getTheCameraPermissions {
    NSString *mediaType = AVMediaTypeVideo;
//    BOOL allow = NO;
    
    AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:mediaType];
//    if (authStatus == ALAuthorizationStatusRestricted
//        || authStatus == ALAuthorizationStatusDenied) {
//        NSLog(@"相机权限受限");
//        allow = NO;
//    } else {
//        allow = YES;
//    }
    return authStatus;
}

@end
